package com.secondGroup.mapper;

import com.secondGroup.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ws
 * @since 2022-05-05
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    Integer updateLoginStatus (User user);

    List<User> selectByUser(String account);

    List<User> selectByPhone(String phone);

    @Select("SELECT e_id FROM t_user WHERE account = #{account}")
    String selectEid(String account);

}
